﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using NCT.Framework;
using VISS.API.Users;

namespace VISS.Web.Frontend.Modules.User.Profile
{
    public partial class ActionUserControl : System.Web.UI.UserControl
    {
        public bool IsPersonal;
        public string UserKey;
        public int ImageCount;
        public bool CanDoAction;
        protected string url = "";
        
        protected void Page_Load(object sender, EventArgs e)
        {
            string userKey = ConvertUtils.ToString(Request.QueryString["key"]);
            UserContext userContext = LoginFactory.GetCurrentUser();
            if (userContext == null)
            {
                Response.Redirect("/error?t=" + (int)EErrorType.ProfileNotFound);
                return;
            }

            else
            {
                url = AppSettings.RootURL + "contactlist?u=" + userKey;                
            }
  
        }
    }
}